<?php

Route::group([
    'prefix' => 'order',
    'middleware' =>'auth.admin',
], function () {
    Route::get('list', [
        'as' => 'AdminOrderList',
        'alias' => '订单列表',
        'uses' => 'Admin\OrderController@showList'
    ]);

    Route::get('edit', [
        'as' => 'AdminOrderEdit',
        'alias' => '订单编辑',
        'uses' => 'Admin\OrderController@showEdit'
    ]);

    Route::post('edit', [
        'as' => 'AdminOrderEditAction',
        'alias' => '订单编辑保存',
        'uses' => 'Admin\OrderController@saveEdit'
    ]);

    Route::get('customer-service-return', [
        'as' => 'AdminOrderCustomerServiceReturn',
        'alias' => '订单客服回访',
        'uses' => 'Admin\OrderController@showServiceReturn'
    ]);

    Route::post('customer-service-return', [
        'as' => 'AdminOrderCustomerServiceReturnAction',
        'alias' => '订单客服回访保存',
        'uses' => 'Admin\OrderController@saveServiceReturn'
    ]);

    Route::get('excel', [
        'as' => 'AdminOrderExcel',
        'alias' => '订单导出',
        'uses' => 'Admin\OrderController@excel'
    ]);

    Route::get('show-logistics-trajectory', [
        'as' => 'AdminOrderLogisticsTrajectory',
        'alias' => '订单物流轨迹',
        'uses' => 'Admin\OrderController@showLogisticsTrajectory'
    ]);

    Route::post('import-courier-number', [
        'as' => 'AdminOrderImportCourierNumber',
        'alias' => '订单快递单号导入',
        'uses' => 'Admin\OrderController@importCourierNumber'
    ]);

    Route::post('change-step', [
        'as' => 'AdminOrderChangeStep',
        'alias' => '订单阶段修改',
        'uses' => 'Admin\OrderController@changeStep'
    ]);

    Route::post('change-status', [
        'as' => 'AdminOrderChangeStatus',
        'alias' => '订单状态修改',
        'uses' => 'Admin\OrderController@changeSatus'
    ]);

    Route::post('a-key-delivery', [
        'as' => 'AdminOrderAKeyDelivery',
        'alias' => '订单一键发货',
        'uses' => 'Admin\OrderController@aKeyDelivery'
    ]);

    Route::get('drop-shipping-list', [
        'as' => 'AdminOrderDropShippingList',
        'alias' => '待发货订单列表',
        'uses' => 'Admin\OrderController@showDropShippingList'
    ]);

    Route::get('has-been-shipped-list', [
        'as' => 'AdminOrderHasBeenShippedList',
        'alias' => '已发货订单列表',
        'uses' => 'Admin\OrderController@showHasBeenShippedList'
    ]);

    Route::get('cancel-list', [
        'as' => 'AdminOrderCancelList',
        'alias' => '取消订单列表',
        'uses' => 'Admin\OrderController@showCancelList'
    ]);

    Route::get('complete-list', [
        'as' => 'AdminOrderCompleteList',
        'alias' => '完成订单列表',
        'uses' => 'Admin\OrderController@showCompleteList'
    ]);

    Route::get('refusal-list', [
        'as' => 'AdminOrderRefusalList',
        'alias' => '拒签订单列表',
        'uses' => 'Admin\OrderController@showRefusalList'
    ]);

    Route::get('after-sales-list', [
        'as' => 'AdminOrderAfterSalesList',
        'alias' => '售后订单列表',
        'uses' => 'Admin\OrderController@showAfterSalesList'
    ]);

    Route::get('import-excel-file', [
        'as' => 'AdminOrderImportExcelFileGet',
        'alias' => '导入excel',
        'uses' => 'Admin\OrderController@getImportExcelFile'
    ]);

    Route::post('import-excel-file', [
        'as' => 'AdminOrderImportExcelFile',
        'alias' => '导入excel',
        'uses' => 'Admin\OrderController@importExcelFile'
    ]);
});